using System;
using System.Configuration;
using System.Collections.Generic;
using System.Text;
using Web.Core.Objects;

namespace Web.Core
{
    public class GlobalStorage
    {
        public struct Language
        {
            public static int English = Languages.GetLanguageByName("English").ID;
            public static int Vietnamese = Languages.GetLanguageByName("Vietnamese").ID;
        }

        public struct WebRoles
        {
            public static Role Administrators = Roles.GetRole(0, "Administrators");
            public static Role Editors = Roles.GetRole(0, "Editors");
            public static Role Customers = Roles.GetRole(0, "Customers");
        }

        public enum TypeProducts
        {
            All,
            Special
        }

        public enum Show
        {            
            Invisible,
            Visible,
            Both
        }

        public enum State
        {
            Order,
            Shipping,
            Complete,
            Any
        }

        public enum Order
        {
            Ascend,
            Descend
        }

        public enum Sex
        {
            Male,
            Female,
            Both
        }

        public enum Action
        {
            Insert,
            Update,
            Delete
        }

        public static string connectionString = ConfigurationManager.ConnectionStrings["connectionString"].ToString();
        public static int productsPerPage = int.Parse(ConfigurationManager.AppSettings["productsPerPage"]);
        public static int reviewsPerPager = 2;
        public static int productsPerPageForAdmin = 10;
        public static int categoryImageQuantity = 3;
        public static int bestSellersNum = 4;        
        public static int categoriesPerPageForAdmin = 10;
        public static int manufacturersPerPageForAdmin = 10;
        public static int advertisementsPerPageForAdmin = 10;
        public static int membersPerPageForAdmin = 3;
    }
}
